/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package edu.scs.ubbcluj.model;

import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;

/**
 *
 * @author Torok
 */
public class Databases implements Model{
    private static final String TYPE = "DBS";
    private String name;
    private static List<Database> databases;

    public Databases(String name) {
        this.name = name;
        databases = new ArrayList();
    }

    
    public List<Database> getDatabases() {
        return databases;
    }
    
    public void addDatabase(Database database){
        databases.add(database);
    }
    
    public void removeDatabase(Database database){
        databases.remove(database);
    }

    public void setDatabases(List<Database> databases) {
        this.databases = databases;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Override
    public String toString() {
        return this.name;
    }

    @Override
    public String getType() {
       return TYPE;
    }

    
}
